/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.chl.groupofdoom.beans;

import edu.chl.groupofdoom.enums.Category;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 * Support bean
 * 
 * @author Martin Agfjord
 */
@ManagedBean(name = "SupportBean")
@RequestScoped
public class SupportBean implements Serializable{

    /** Creates a new instance of SupportBean */
    public SupportBean() {
    }
    /**
     * Retrieves all categories available
     *
     * @return a list of categories
     */
    public ArrayList<Category> getCategories() {
        ArrayList<Category> mCategories = new ArrayList<Category>();
        mCategories.addAll(Arrays.asList(Category.values()));
        return mCategories;
    }
    
}
